package com.tiku.controller;

import com.tiku.common.ResultJson;
import com.tiku.service.UserErrorCollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 小马不会跑
 * @create 2024-10-01 2:12
 */
@RestController
@RequestMapping("/errorCollections")
@CrossOrigin("*")
public class UserErrorCollectionController {
    @Autowired
    private UserErrorCollectionService userErrorCollectionService;

    @GetMapping("/error/{id}/{type}")
    public ResultJson getError(@PathVariable("id") String id, @PathVariable("type") String type){
        return userErrorCollectionService.getError(id,type);
    }

}
